package com.haixiaoke.saas.workOrder.service;

import com.haixiaoke.saas.workOrder.domain.WorkOrderPwdRecord;

import java.util.List;
import java.util.Map;


/**
 * 工单临时密码申请记录Service接口
 *
 * @author qixi
 * @date 2024-10-10
 */
public interface IWorkOrderPwdRecordService {
    /**
     * 查询工单临时密码申请记录
     *
     * @param recordId 工单临时密码申请记录主键
     * @return 工单临时密码申请记录
     */
    WorkOrderPwdRecord selectWorkOrderPwdRecordByRecordId(Long recordId);

    /**
     * 查询工单临时密码申请记录列表
     *
     * @param workOrderPwdRecord 工单临时密码申请记录
     * @return 工单临时密码申请记录集合
     */
    List<WorkOrderPwdRecord> selectWorkOrderPwdRecordList(WorkOrderPwdRecord workOrderPwdRecord);

    /**
     * 新增工单临时密码申请记录
     *
     * @param workOrderPwdRecord 工单临时密码申请记录
     * @return 结果
     */
    int insertWorkOrderPwdRecord(WorkOrderPwdRecord workOrderPwdRecord);

    /**
     * 修改工单临时密码申请记录
     *
     * @param workOrderPwdRecord 工单临时密码申请记录
     * @return 结果
     */
    int updateWorkOrderPwdRecord(WorkOrderPwdRecord workOrderPwdRecord);

    /**
     * 批量删除工单临时密码申请记录
     *
     * @param recordIds 需要删除的工单临时密码申请记录主键集合
     * @return 结果
     */
     int deleteWorkOrderPwdRecordByRecordIds(Long[] recordIds);

    /**
     * 删除工单临时密码申请记录信息
     *
     * @param recordId 工单临时密码申请记录主键
     * @return 结果
     */
     int deleteWorkOrderPwdRecordByRecordId(Long recordId);

    /**
     * 根据工单id查询工单临时密码申请状态
     * @param workOrderId
     * @return
     */
    String selectWorkOrderPwdApplyStatusByWorkOrderId(String workOrderId);

    int auditWorkOrderPwdRecord(WorkOrderPwdRecord workOrderPwdRecord);

    Map<String, Object> selectWorkOrderPwdRecordCountPwdAuditState(WorkOrderPwdRecord workOrderPwdRecord);

}
